package com.looookme.shaozhuo.activities;

import android.app.Activity;
import android.os.Bundle;
import android.widget.LinearLayout;
import android.widget.TextView;

/**
 * Created by Shaozhuo on 2015/9/8.
 */
public class ActivityDialog extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        initView();
    }

    private void initView() {
        LinearLayout ll = new LinearLayout(this);
        ll.setPadding(20, 20, 20, 20);

        TextView textView = new TextView(this);
        textView.setTextSize(24);
        textView.setText("This is a Activity, But show is a dialog model");
        ll.addView(textView);

        setContentView(ll);
    }
}
